<template>
  <div id="app">
    <router-view></router-view>
  </div>
</template>

<script>
export default {
  name: "App",
  data() {
    return{};
  },
  methods: {
    verifyToken() {
      this.$axios.post(`/user/verify`).then((res) => {
        const postData = res.data;
        if (postData.code != 200) {
          window.sessionStorage.setItem("url",`/common`);
          this.$message.error("请先登录");
          this.$router.push({
            path: `/login`,
          });
        }
        this.user = postData.data;
        console.log(postData);
      });
    },
    }
};
</script>

<style>
</style>
